import { RouteRecordRaw } from 'vue-router'

export const workflowRoutes: RouteRecordRaw[] = [
    {
        path: '/workflow',
        name: 'workflow',
        component: () => import('@/views/WorkflowView.vue'),
        meta: {
            title: '工作流',
            requiresAuth: true
        }
    },
    {
        path: '/workflow/create',
        name: 'workflow-create',
        component: () => import('@/views/WorkflowCreateView.vue'),
        meta: {
            title: '创建工作流',
            requiresAuth: true
        }
    },
    {
        path: '/workflow/:id/edit',
        name: 'workflow-edit',
        component: () => import('@/views/WorkflowEditView.vue'),
        meta: {
            title: '编辑工作流',
            requiresAuth: true
        }
    }
] 